package com.designpattern.structure.agent.jdkagent;

/**
 * @author Administration
 * @date 2021/10/15 - 11:44 - 星期五
 * @project lambda
 * @package com.designpattern.structure.agent.jdkagent
 * @by 晨
 */
public class test {
    public static void main(String[] args) {

        //获取代理对象
        ProxyFactory factory = new ProxyFactory();

        SellTickets proxyObject = factory.getProxyObject();

        proxyObject.sell();

        System.out.println(proxyObject.getClass());

        //while (true){}
    }
}
